execute as @s[tag=!guardTower] run return run execute as @n[tag=guardTower,type=item_display] at @s run function vs:system/game_ctrol/guard_tower/break

execute if data entity @s item.components."minecraft:custom_data".guardTowerData{PowerInputEmpty:false} run function vs:system/game_ctrol/guard_tower/power/empty_input
summon marker ~ ~ ~ {Tags:[GTBreaker,"GameCtrol"]}
data modify entity @n[tag=GTBreaker,distance=..10,type=marker] Pos set from entity @s item.components."minecraft:custom_data".guardTowerData.placerPos
execute at @n[tag=GTBreaker,distance=..10,type=marker] run fill ~ ~ ~ ~2 ~7 ~2 air replace #vs:guard_tower_blocks
particle explosion ~ ~-3 ~ 0.3 1 0.3 1 3
particle block{block_state:"sea_lantern"} ~ ~ ~ 0.3 0.3 0.3 1 20
particle enchanted_hit ~ ~ ~ 0.3 0.3 0.3 1 10
particle block{block_state:"smooth_quartz"} ~ ~-3 ~ 0.3 1 0.3 1 50
playsound entity.generic.explode master @a ~ ~ ~ 3.0 1.0
kill @s
function util:entity_owner/find_son_distance10 with entity @s
kill @e[tag=son_entity,distance=..50]
kill @n[tag=GTBreaker,type=marker,distance=..10]